package com.bwsoft.admin.domain;

// default package

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Web首页BannerPOJO
 * 
 * @author Cui Bowen
 */
@Entity
@Table(name = "web_banner")
public class Banner implements java.io.Serializable {

	private static final long serialVersionUID = 4827773402834546022L;
	@Id
	@Column(name = "bannerId")
	@GenericGenerator(name = "idGenerator", strategy = "identity")
	@GeneratedValue(generator = "idGenerator")
	private Integer bannerId;
	private String bannerName;
	private String bannerSize;
	private Boolean bannerStatus;
	private Integer bannerOrder;
	@ManyToOne(cascade = { CascadeType.ALL })
	@JoinColumn(name = "fileid")
	private File fileid;
	private Date addTime;

	public Integer getBannerId() {
		return bannerId;
	}

	public void setBannerId(Integer bannerId) {
		this.bannerId = bannerId;
	}

	public String getBannerName() {
		return bannerName;
	}

	public void setBannerName(String bannerName) {
		this.bannerName = bannerName;
	}

	public String getBannerSize() {
		return bannerSize;
	}

	public void setBannerSize(String bannerSize) {
		this.bannerSize = bannerSize;
	}

	public Boolean getBannerStatus() {
		return bannerStatus;
	}

	public void setBannerStatus(Boolean bannerStatus) {
		this.bannerStatus = bannerStatus;
	}

	public File getFileid() {
		return fileid;
	}

	public void setFileid(File fileid) {
		this.fileid = fileid;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	public Integer getBannerOrder() {
		return bannerOrder;
	}

	public void setBannerOrder(Integer bannerOrder) {
		this.bannerOrder = bannerOrder;
	}

}